import { Navigator as SolidNavigator } from "@solidjs/router"
import { IsNotNullOrWhiteSpaceString } from "./functions";

export const AppName = import.meta.env.VITE_APP_NAME;
export const AppBase = IsNotNullOrWhiteSpaceString(AppName) ? AppName : ''


export function relativeToAbsolutePath(relativePath?: string) {
    return IsNotNullOrWhiteSpaceString(AppName) ? `/${AppName}/${relativePath}` : `/${relativePath}`
}

export const r2a = relativeToAbsolutePath
